/**
 * RoleEntity.java
 */
package org.yate.oa.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.apache.ibatis.type.Alias;

/**
 * @author Yate
 * @date Nov 18, 2013
 * @description TODO
 * @version 1.0
 */
@Alias(value = "RoleEntity")
public class RoleEntity implements Serializable {

	private Long roleId;
	private String roleName;
	private List<RoleRefPrivilegeEntity> rps;

	/**
	 * 
	 */
	public RoleEntity() {
	}

	/**
	 * @param roleName
	 */
	public RoleEntity(String roleName) {
		super();
		this.roleName = roleName;
	}

	/**
	 * @return the roleId
	 */
	public final Long getRoleId() {
		return roleId;
	}

	/**
	 * @param roleId
	 *            the roleId to set
	 */
	public final void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	/**
	 * @return the roleName
	 */
	public final String getRoleName() {
		return roleName;
	}

	/**
	 * @param roleName
	 *            the roleName to set
	 */
	public final void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	/**
	 * @return the rps
	 */
	public final List<RoleRefPrivilegeEntity> getRps() {
		return rps;
	}

	/**
	 * @param rps
	 *            the rps to set
	 */
	public final void setRps(List<RoleRefPrivilegeEntity> rps) {
		this.rps = rps;
	}

}
